/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Outputsdemo;

import java.io.File;
import java.io.FileReader;

/**
 *
 * @author Administrator
 */
public class readFileDemo {
    public static void main(String[] args) throws Exception{
       File file=new File("text.txt");
       FileReader f=new FileReader(file);
       BufferedReader b=new BufferedReader(f);
       String temp=null;
       while((temp=b.readLine())!=null){
           System.out.println("temp");
           
       }
        System.out.println("************文件结束***********");
    }

}
